package com.seal.tsms.school.entity;

import com.seal.tsms.base.entity.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by wangwen on 2016/1/20.
 * 教育背景
 */
@Entity
@Table(name = "educationinfos")
public class EducationInfo extends BaseEntity {

    private String education;  //学历
    private String major;     //专业
    private String school;     //学校
    private String credential;    //持有证书
    // private String graduateTime;     //毕业时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date graduateTime;

    @Column(name = "graduateTime")
    public Date getGraduateTime() {
        return graduateTime;
    }

    public void setGraduateTime(Date graduateTime) {
        this.graduateTime = graduateTime;
    }

    @Column(name = "education")
    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    @Column(name = "major")

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    @Column(name = "school")
    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    @Column(name = "credential")
    public String getCredential() {
        return credential;
    }

    public void setCredential(String credential) {
        this.credential = credential;
    }
    /*@Column(name = "graduateTime")
    public String getGraduateTime() {
        return graduateTime;
    }

    public void setGraduateTime(String graduateTime) {
        this.graduateTime = graduateTime;
    }*/
}
